package org.jsola.hr.query;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.query.BaseQuery;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * @author wcl
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class EmpCountQuery extends BaseQuery {

    @ApiModelProperty(value = "渠道id")
    private String channelId;

    @ApiModelProperty(value = "公司Id数组; 租户传空,分组传ids")
    private String[] companyIds;

    @ApiModelProperty(value = "姓名/手机号")
    private String nameOrPhone;

    @ApiModelProperty(value = "员工状态; 1:待入职 2:在职 4:离职 不传查询全部")
    private Integer status;

    /**
     * 每页的条数
     */
    @ApiParam(value = "分页参数，每页的条数", example = "20")
    @Max(value = 1000, message = "pageSize不能大于1000")
    private Integer pageSize = 20;

    /**
     * 当前第几页
     */
    @ApiParam(value = "分页参数，第几页", example = "1")
    @Min(value = 1, message = "pageNo不能小于1")
    private Integer pageNo = 1;
}
